<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="org.swim.entity.User" %>
<%@ page import="org.swim.entity.Ability" %>
<%@ page import="org.swim.entity.HelpRequests" %>
<%@ page import="java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Edit Your Profile</title>
	<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
	<%@ include file="NavBar.jsp" %>
	<% int profileToEdit = Integer.parseInt((String) request.getAttribute("profileToEdit")); %>
	<div class="container">
	<% if(!status.equals("guest")) { %>
	<h1>Edit Your Profile</h1>
	<% if (session.getAttribute("id").equals(profileToEdit)) { %>
		<form action="EditProfile" method="post">
		  <label>Insert the path of your new avatar</label>
			<input type="hidden" name="profile" value="<% session.getAttribute("id"); %>" />
			<input type="text" placeholder="Insert the path of your avatar" name="avatar" />
		  <button type="submit" class="btn">Submit</button>
		</form>
	<% } } else { %>
		<%@ include file="NoRights.jsp" %>	
	<% } %>
	</div>
</body>
</html>